<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>内置服务器</title>
		<script src="../plugins/angularjs/angular.min.js"></script>
		<script>
			var app=angular.module('myApp',[]);
			app.controller('myController',function($scope,$http){
				 //$http发送异步请求
				 $scope.findAll=function(){
					 //发送一个异步请求
					 $http.get("/brand/findAll.do").success(
					    function(response){
						  //response就是返回的结果
						  console.log(response);
						  $scope.datas=response;
					 });
				 }
			});
		</script>
	</head>
	<body ng-app="myApp" ng-controller='myController'  ng-init="findAll()" >
		
		<table>
			<tr>
				<td>id</td><td>name </td><td>firstChar</td>
			</tr>
			<tr ng-repeat="obj in datas">
				<td>{{obj.id}}</td><td>{{obj.name}}</td><td>{{obj.firstChar}}</td>
			</tr>
			
		</table>	 
		 
	</body>
</html>
